import React, { Component } from 'react'
import { AppCosumer } from '../../context/AppContext'

export default class Login extends Component {
    render() {
        return (
            <AppCosumer>
                {
                    ({ signin })=>{
                        return <button onClick={signin}>登录</button>
                    }
                }
            </AppCosumer>
        )
    }
}
